package com.chinasoft04.mall.mapper;

import com.chinasoft04.mall.dto.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderMapper {

    @Select("select * from sp_order")
    List<Order> selectAll();

    @Select("select * from sp_order where order_number like #{query}")
    List<Order> query(String query);
}
